package com.ruoyi.goods.GoodsStore.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.goods.GoodsStore.domain.GoodsStore;
import com.ruoyi.goods.GoodsStore.mapper.GoodsStoreMapper;
import com.ruoyi.goods.GoodsStore.service.IGoodsStoreService;
import com.ruoyi.goods.GoodsStore.vo.GoodsStoreVo;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 物品库存Service业务层处理
 *
 * @author ruoyi
 * @date 2022-11-28
 */
@Service
public class GoodsStoreServiceImpl extends ServiceImpl<GoodsStoreMapper, GoodsStore> implements IGoodsStoreService {

    /**
     * 查询物品库存列表
     *
     * @param goodsStore 物品库存
     * @return 物品库存
     */
    @Override
    public List<GoodsStore> selectGoodsStoreList(GoodsStore goodsStore) {
        return getBaseMapper().selectGoodsStoreList(goodsStore);
    }

    public GoodsStore selectGoodsStore(Long goodsId,Long storeId) {
        return getBaseMapper().selectGoodsStore(goodsId,storeId);
    }

    @Override
    public List<Integer> selectCategory(Long categoryId) {
        return getBaseMapper().selectCategory(categoryId);
    }

    @Override
    public boolean deleteGoodsStore(Long id) {
        return getBaseMapper().deleteGoodsStore(id);
    }

    @Override
    public GoodsStore selectGoodsStoreById(Long id) {
        return getBaseMapper().selectGoodsStoreById(id);
    }
}
